﻿/**
作者：常亮
时间：2009-11-17
功能: 时间表
**/
function ShowTime() { 
var myDate = new Date();   
var year=myDate.getFullYear();
var month = myDate.getMonth() + 1;    
var ri=myDate.getDate();      
var day = myDate.getDay(); 
var xq=Getday(day);
var mydate = year + "年" + month + "月" + ri + "日" + "&nbsp;&nbsp;"+xq;
return mydate;

}

function Getday(day) {
    switch (day) {
        case 0: return "星期日";
        case 1: return "星期一";
        case 2: return "星期二";
        case 3: return "星期三";
        case 4: return "星期四";
        case 5: return "星期五";
        case 6: return "星期六";

    }
}